home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96b.txt
/
000038_icon-group-sender _Sun Oct 20 20:55:01 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1997-01-02
|
2KB
Received: by cheltenham.cs.arizona.edu; Mon, 21 Oct 1996 10:19:36 MST
Date: Sun, 20 Oct 1996 20:55:01 -0500
Message-Id: <199610210155.UAA17336@ns1.computek.net>
Mime-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
From: gep2@computek.net
Subject: Saving Records, Lists, etc. to disk
To: icon-group@cs.arizona.edu
X-Mailer: SPRY Mail Version: 04.00.06.17
Errors-To: icon-group-errors@cs.arizona.edu
>Is it possible to save one of advanced data types
such as Record, List, Table, Set, ... to disk?
Then in another session, read this back in to an
Icon program.
>For the tree structure illustrated on pages
189-192,it is possible to convert this to a string.
Yes, that works for tree structures but not for a generalized linked structure.
Nor does it solve the problem if you want to store tables, lists, character
sets, user defined data types or the like. It's a non-trivial problem!
>What I am looking for is disk storage of the
structure in its "native" form and then later
access to this structure. It would seem this would
be a good feature for Icon.
In many implementations of SNOBOL4 (SNOBOL4+ for example) you can do this, IF
you're wanting to reload the structure into a reload the SAME program that saved
it, by using the SAVE() function. That function saves the program, along with
all currently active data structures and values in a way that can be restored
later.
Gordon Peterson
http://www.computek.net/public/gep2/